package com.atgouwu.mall.cart.service;

import com.atgouwu.mall.cart.vo.CartItemVo;
import com.atgouwu.mall.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {

    CartVo getCart() throws ExecutionException, InterruptedException;

    CartItemVo addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    void changeItemCount(Long skuId, Integer num);

    void deleteIdCartInfo(Integer skuId);

    List<CartItemVo> getUserCartItems();

}
